package com.avic.rong.shoppingCar.api;

import android.support.v4.app.FragmentActivity;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

/**
 * Created by TSJ-2018-0492 on 2019/8/7.
 */

public class ShoppingCarGetSkuApi extends BaseApi {

   private int goodsId,skuId;


    public ShoppingCarGetSkuApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener,int goodsId,int skuId) {
        super(rxAppCompatActivity, listener);
        this.goodsId=goodsId;
        this.skuId=skuId;
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService service = retrofit.create(HttpPostService.class);
        return service.getGoodSku(goodsId,skuId);
    }


}
